all:client server
client: protobuf_client.cpp request.pb.cc ../include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib -pthread -lmuduo_net -lmuduo_base -lz -lprotobuf
server: protobuf_server.cpp request.pb.cc ../include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib -pthread -lmuduo_net -lmuduo_base -lz -lprotobuf

.PHONY:clean
clean:
	rm -f server client